﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace EmployeeLeaveSystem.Shared.Models {
    /// <summary>
    /// 对于一条消息的批复和回答
    /// </summary>
    public class Comments {
        public int Id { get; set; }
        public string Msg { get; set; } = "";
        public DateTime Time { get; set; } = DateTime.Now; // 发帖时间
        public CommentType Type { get; set; } = CommentType.Noraml; // 消息接收时间

        public int LeaveDetailId { get; set; }
        public LeaveDetail? LeaveDetail { get; set; } // 所属的请假离职Id
        public int StaffInfoId { get; set; }
        public StaffInfo? StaffInfo { get; set; } //发送消息所属的人员
    }
    public enum CommentType { Noraml, Accept, Reject, Finished }
}
